package org.example.user.service.Impl;

import org.example.user.domain.SysToken;
import org.example.user.mapper.TokenMapper;
import org.example.user.service.ITokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: TokenServiceImpl
 * @author: e
 * @createDate: 2021/5/30
 */
@Service
public class TokenServiceImpl implements ITokenService {

    @Autowired
    private TokenMapper tokenMapper;

    @Override
    public SysToken findEmailByToken(String token) {
        return tokenMapper.findEmailByToken(token);
    }

    @Override
    public void saveToken(SysToken sysToken) {
        tokenMapper.saveToken(sysToken);
    }
}
